﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenQuarters.WebQuarters.Core;
using OpenQuarters.WebQuarters.Utils;

namespace OpenQuarters.WebQuarters.Modules.MailingList
{
    partial class MailingList : MailingListEntity<MailingList, string>
    {
        public override string GetKey(MailingList Entity)
        {
            return Entity.UserId;
        }

        public override System.Linq.Expressions.Expression<Func<MailingList, bool>> GetIDSelector(string ID)
        {
            return e => e.UserId == ID;
        }

    }
}
